package com.ms.education.course.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ms.education.course.entity.Classroom;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ms.education.course.entity.vo.ClassTeacherVo;
import com.ms.education.course.entity.vo.FrontClassInfoVo;
import com.ms.education.course.entity.vo.PageClassVo;

import java.util.List;

/**
 * <p>
 * 班级 服务类
 * </p>
 *
 * @author ms
 * @since 2023-02-24
 */
public interface ClassroomService extends IService<Classroom> {

    Page<Classroom> pageClass(long current, long limit, PageClassVo pageClassVo);

    //查询用户加入的班级
    @Deprecated
    List<Classroom> getClassOfUser(int userId);

    //删除班级
    void deleteClass(Integer id);

    //添加班级
    void saveClass(Classroom classroom);

    //查询班级讲师
    List<ClassTeacherVo> getClassTeacher(Integer classId);

    //查询班级详情，包括班级信息，班级课程，班级讲师
    FrontClassInfoVo getFrontClassInfo(Integer id);


}
